package cn.sdormitory.knowledgebase.service;

import cn.sdormitory.knowledgebase.vo.RuleRegulationVo;
import cn.sdormitory.knowledgebase.dto.RuleRegulationDto;
import cn.sdormitory.knowledgebase.pojo.RuleRegulation;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * Created By guarantee
 * Date: 2020/12/31
 * Time: 15:33
 */
public interface RuleRegulationService {
    /**
     * 获取规则制度列表
     * @param pageNum
     * @param pageSize
     * @param title
     * @param type
     * @return
     */
    IPage<RuleRegulationVo> getRuleRegulationList(Integer pageNum, Integer pageSize, String title, Integer type);

    /**
     * 添加规则制度
     * @param regulationDto
     * @return
     */
    Integer addRuleRegulation(RuleRegulationDto regulationDto);

    /**
     * 修改规则制度
     * @param regulationDto
     * @return
     */
    Integer updateRuleRegulation(RuleRegulationDto regulationDto);

    /**
     * 删除规则制度
     * @param id
     * @return
     */
    Integer deleteRuleRegulation(Integer id);

    /**
     * 根据id获取规则制度信息
     * @param id
     * @return
     */
    RuleRegulation getRuleRegulationById(Integer id);

    /**
     * 批量删除规则制度
     * @param rIds
     * @return
     */
    Integer deleteList(Integer[] rIds);

}
